<template>
  <div>
    <div class="search_bar">
      <van-field class="search_input" v-model="value" placeholder="天使纪元(送无线充值)"/>
      <span @click="$router.back()">取消</span>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        value: '',
      }
    },
  }
</script>

<style lang="less" scoped>
.search_bar {
  box-sizing: border-box;
  padding: 0 .426667rem;
  width: 10rem;
  height: 1.173333rem;
  background: #fff;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .346667rem;
  .search_input {
    position: relative;
    flex: 1;
    padding: 0;
    height: .693333rem;
    border-radius: .346667rem;
    background: #F5F5F5;
    font-size: .293333rem;
    line-height: .693333rem;
    padding-left: .733333rem;
    margin-right: .56rem;
    &::before {
      content: '';
      position: absolute;
      width: .32rem;
      height: .32rem;
      background: url('../../assets/img/home/ic_search.png') no-repeat;
      background-size: .32rem .32rem;
      top: 50%;
      transform: translateY(-50%);
      left: .266667rem;
    }
  }
  .span {
    width: 1.333333rem;
    color: #333;
    font-weight: 500;
  }
}
</style>